package com.jt.flight.model.afare;

import java.util.List;

/**
 * since 2015/11/25.
 */
public class Routing {

    private String data;
    private int adultPrice;
    private int adultTax;
    private int adultTaxType;
    private int childPrice;
    private int childTax;
    private int childTaxType;
    private int priceType;
    private int applyType;
    private int ticketTimeLimit;
    private List<Segment> fromSegments;
    private List<Segment> retSegments;
    private Rule rule;

    public String getData() {
        return data;
    }

    public void setData(String data) {
        this.data = data;
    }

    public int getAdultPrice() {
        return adultPrice;
    }

    public void setAdultPrice(int adultPrice) {
        this.adultPrice = adultPrice;
    }

    public int getAdultTax() {
        return adultTax;
    }

    public void setAdultTax(int adultTax) {
        this.adultTax = adultTax;
    }

    public int getAdultTaxType() {
        return adultTaxType;
    }

    public void setAdultTaxType(int adultTaxType) {
        this.adultTaxType = adultTaxType;
    }

    public int getChildPrice() {
        return childPrice;
    }

    public void setChildPrice(int childPrice) {
        this.childPrice = childPrice;
    }

    public int getChildTax() {
        return childTax;
    }

    public void setChildTax(int childTax) {
        this.childTax = childTax;
    }

    public int getChildTaxType() {
        return childTaxType;
    }

    public void setChildTaxType(int childTaxType) {
        this.childTaxType = childTaxType;
    }

    public int getPriceType() {
        return priceType;
    }

    public void setPriceType(int priceType) {
        this.priceType = priceType;
    }

    public int getApplyType() {
        return applyType;
    }

    public void setApplyType(int applyType) {
        this.applyType = applyType;
    }

    public int getTicketTimeLimit() {
        return ticketTimeLimit;
    }

    public void setTicketTimeLimit(int ticketTimeLimit) {
        this.ticketTimeLimit = ticketTimeLimit;
    }

    public List<Segment> getFromSegments() {
        return fromSegments;
    }

    public void setFromSegments(List<Segment> fromSegments) {
        this.fromSegments = fromSegments;
    }

    public List<Segment> getRetSegments() {
        return retSegments;
    }

    public void setRetSegments(List<Segment> retSegments) {
        this.retSegments = retSegments;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("Routing{");
        sb.append("data='").append(data).append('\'');
        sb.append(", adultPrice=").append(adultPrice);
        sb.append(", adultTax=").append(adultTax);
        sb.append(", adultTaxType=").append(adultTaxType);
        sb.append(", childPrice=").append(childPrice);
        sb.append(", childTax=").append(childTax);
        sb.append(", childTaxType=").append(childTaxType);
        sb.append(", priceType=").append(priceType);
        sb.append(", applyType=").append(applyType);
        sb.append(", ticketTimeLimit=").append(ticketTimeLimit);
        sb.append(", fromSegments=").append(fromSegments);
        sb.append(", retSegments=").append(retSegments);
        sb.append('}');
        return sb.toString();
    }
}
